<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a th:href="@{/aa}">添加</a>
<table>
    <tr>
        <th>流水号</th>
        <th>员工姓名</th>
        <th>年龄</th>
        <th>性别</th>
        <th>邮箱</th>
        <th>操作</th>
    </tr>
    <tr th:each="employee,status:${list}">
        <td th:text=" ${status.count}"></td>
        <td th:text=" ${employee.empName}"></td>
        <td th:text="${employee.age}" ></td>
        <td th:text="${employee.gender}" ></td>
        <td th:text=" ${employee.email}"></td>
        <td>
            <button><a th:href="@{'/employee/'+${employee.empId}}">修改</a></button>
            <form th:action="@{'/employee/'+${employee.empId}}" method="post">
                <input type="hidden" name="_method" value="delete">
                <input type="submit" value="删除">
            </form>
        </td>
    </tr>
</table>
</body>
</html>